﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperJ.CMS.Commons
{
    public class JqGridData
    {
        private int _total;
        private int _page;
        private int _records;
        private JqGridDataList<string> _rows;
        public int total
        {
            get { return _total; }
            set { _total = value; }
        }
        public int page
        {
            get { return _page; }
            set { _page = value; }
        }
        public int records
        {
            get { return _records; }
            set { _records = value; }
        }

        //public JqGridDataList<string> rows
        //{

        //}
        //var temp = new
        //{

        //    total = totalPages,
        //    page = page,
        //    records = totalRecords,
        //    rows = list.Select(i => new
        //    {
        //        id = i.AnnounceId,
        //        cell = new object[] { i.AnnounceId, i.Title, string.IsNullOrEmpty(i.LinkUrl) ? false : true, i.IsPass, i.IsTop, i.CreateTime }
        //    })
        //};
    }
}
